package com.example.demo.test.contriller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


//标记controller来处理请求
@Controller
public class controller {
    @ResponseBody
    @RequestMapping("/hello")
    public String hello(){
        return "hello test";
    }
}
